package com.graduationproject.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.graduationproject.entity.*;
import com.graduationproject.entity.dto.DishUserDTO;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @author shkstart
 * @create 2023-12-04-14:29
 */
@Service
public interface DishService extends IService<Dish> {
    Dish findDishById(Integer id);

    List<Dish> findDishesAll();

    List<Dish> search(String input);

    List<Dish> searchHotDishes(Integer type);

    PageResult<Dish> findDishPage();

    String findTotals();

    void deleteDish(int row);

    Dish findAllById(Integer id);

    void dishPut(Dish dish);

    void dishMakePut(DishMake dishMakes);

    void addDishAndMake(Dish dish);

    void addDishMake(DishMake dishMake);

    ArrayList<Dish> matchDish(String number, String sum);


    void addDishRecord(List<Dish> dishes,String username);

    List<DishRecord> getDishRecord(String username);

    List<DishRecord> findByTime(String startTime,String endTime,String username);

    int findDishByTime(String startTime, String endTime, String username);

    List<Dish> getCarouselChart();
}
